/* main.c
 * Compiler: C32
 * The db_utils run only on the starter kit (not in SIM)
 * Note also that DBINIT() does not do anything.
 * You must define the preprocessor symbol PIC32_STARTER_KIT to use the debug
 * print utility in project_propertise/x32-gcc/preprocessor macros
 * Also define heap under xc32-ld to for example 512 bytes when using xc32 compiler
 */

// Configuration Bit settings
// SYSCLK = 80 MHz (8MHz Crystal/ FPLLIDIV * FPLLMUL / FPLLODIV)
// PBCLK = 40 MHz
// Primary Osc w/PLL (XT+,HS+,EC+PLL)
// WDT OFF
// Other options are don't care
//
#pragma config FPLLMUL = MUL_20
#pragma FPLLIDIV = DIV_2
#pragma FPLLODIV = DIV_1
#pragma FWDTEN = OFF
#pragma config POSCMOD = HS
#pragma FNOSC = PRIPLL
#pragma FPBDIV = DIV_8

#define SYS_FREQ 			(80000000L)
//-------------------------------------------------------------------------------

#include <xc.h>

int main()
{
    unsigned int i;
       
    DBINIT(); //Initialize the IO channel
    DBPRINTF("Basic Starter Kit Lab (" __DATE__ ", " __TIME__ ")\n");
    DBPUTS("Hello from PIC32 \n");

    return 0;
}